package io.renren.modules.web.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.Data;

/**
 * 试卷
 * 
 * @author chensixiang
 * @email chensixiang1234@gmail.com
 * @date 2021-08-29 16:56:05
 */
@Data
@TableName("t_testpaper")
public class TestpaperEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId
	private Long id;
	/**
	 * 试卷名
	 */
	private String name;
	/**
	 * 试题数量
	 */
	private Integer num;
	/**
	 * 总分
	 */
	private Integer score;
	/**
	 * 创建者
	 */
	private String creator;
	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;
	/**
	 * 修改时间
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date updateTime;
	@TableField(exist = false)
	private List<TestpapersonEntity> testPaperSons;

}
